package com.yuke.cloud.service.omc.dao;

import com.yuke.cloud.common.core.mybatis.MyMapper;
import com.yuke.cloud.service.api.omc.dto.GoodsInfo;
import com.yuke.cloud.service.api.omc.dto.OdsGoodSalesApiDto;
import com.yuke.cloud.service.omc.dto.OrderGoodsDto;
import com.yuke.cloud.service.omc.entity.OdsOrderGoods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component
public interface OdsOrderGoodsMapper extends MyMapper<OdsOrderGoods> {

    Object selectbyorderidanbyproductid(@Param("orderid") Long aLong, @Param("productid") Long longshopid);

    List<Map> getcountnumbyshopandbyspecid(@Param("idlist") List<OdsOrderGoods> list);

    List<Map>  selectnumbyshopidmonth(@Param("shopidlist") List<OdsOrderGoods> list);

    List<Map> countnum(@Param("list") List<Long> id);

    List<Map> gethistorynum(@Param("list") List<OdsOrderGoods> odsOrderGoods);

    List<Map> countmonthnumbyprimikey(@Param("list") List<GoodsInfo> shop_goods_id);

    List<OrderGoodsDto> selectByOrderId(@Param("orderId") Long orderId);

    List<OrderGoodsDto> selectOrderGoodsByShopIds(@Param("orderIds") List<Long>  orderIds);

    List<Map> recommond01(@Param("specIds") List<Long> specIds);

    List<OdsGoodSalesApiDto> goodsSales(OdsGoodSalesApiDto odsGoodSalesApiDto );
}
